# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=cutefish-kwin-plugins
pkgver=0.8
pkgrel=1
pkgdesc="CutefishOS KWin Plugins"
arch=('loong64' 'x86_64')
url="https://github.com/cutefishos/kwin-plugins"
license=('GPL')
groups=('cutefish')
conflicts=('deepin-kwin')
depends=('kconfig' 'kdecoration' 'kguiaddons' 'kcoreaddons' 'kconfigwidgets' 'kwindowsystem'
         'kwayland' 'kwin'
         # qml:
         'fishui' 'kdeclarative' 'plasma-framework')
makedepends=('extra-cmake-modules' 'ninja' 'qt5-tools')
source=("https://github.com/cutefishos/kwin-plugins/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('592e1be40bcd1052ff70293b00667604c23f3201ab1888f3e77b2b01199cd06edda4eec2a88534b2814d80deedd23f29c96d7700a14db2fde6902023e5bf8b79')

build() {
  cd kwin-plugins-$pkgver

  cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr .
  ninja
}

package() {
  cd kwin-plugins-$pkgver
  DESTDIR="$pkgdir" ninja install
}
